package com.tbit.uqbike.center.util;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 回复实体类
 *
 * @author Leon
 * 2014-4-10 下午02:05:28
 */
@Slf4j
public class ResponseUtil {
    /**
     * 输出
     */
    public static void print(HttpServletResponse response, String text) {
        try {
            response.setContentType("text/plain;charset=UTF-8");
            response.getWriter().write(text);
        } catch (IOException e) {
            log.error(e.getMessage(), e);
        }
    }

}
